import {
    ajaxSet
} from "@/utils/ajax";
import prefixAPI from "@/api/prefixAPI"; // prefixAPI 前缀

// 获取账期
export function getMaxMonth (query) {
    return ajaxSet({
        url: '/mhIncome/maxMonth',
        method: 'get',
        params: query
    })
}

// 码号收入整体概况
export function getWholeView (query) {
    return ajaxSet({
        url: '/mhIncome/wholeView',
        method: 'get',
        params: query
    })
}

// 码号收入整体趋势
export function overallTrend (query) {
    return ajaxSet({
        url: '/mhIncome/overallTrend',
        method: 'get',
        params: query
    })
}

// 经营单元增长情况
export function growthSituation (query) {
    return ajaxSet({
        url: '/mhIncome/growthSituation',
        method: 'get',
        params: query
    })
}

// 经营单元存量和增量收入完成
export function getCompletion (query) {
    return ajaxSet({
        url: '/mhIncome/completion',
        method: 'get',
        params: query
    })
}

// 公众政企科目环比和同比
export function getComparison (query) {
    return ajaxSet({
        url: '/mhIncome/comparison',
        method: 'get',
        params: query
    })
}

// 按汇总科目环比
export function getSubject (query) {
    return ajaxSet({
        url: '/mhIncome/subject',
        method: 'get',
        params: query
    })
}

// 按汇总科目环比
export function managementSubject (query) {
    return ajaxSet({
        url: '/mhIncome/managementSubject',
        method: 'get',
        params: query
    })
}

// 按来源环比
export function hbSource (query) {
    return ajaxSet({
        url: '/mhIncome/hbSource',
        method: 'get',
        params: query
    })
}

// 按来源按科目环比
export function hbSourceSubject (query) {
    return ajaxSet({
        url: '/mhIncome/hbSourceSubject',
        method: 'get',
        params: query
    })
}

// 环比下降上升支局
export function substation (query) {
    return ajaxSet({
        url: '/mhIncome/substation',
        method: 'get',
        params: query
    })
}

// 环比下降上升客户
export function customer (query) {
    return ajaxSet({
        url: '/mhIncome/customer',
        method: 'get',
        params: query
    })
}

// 环比增长降收大颗粒资产
export function grain (query) {
    return ajaxSet({
        url: '/mhIncome/grain',
        method: 'get',
        params: query
    })
}

// 台阶最大账期
export function stepMaxMonth (query) {
    return ajaxSet({
        url: 'StepIncome/maxMonth',
        method: 'get',
        params: query
    })
}

// 2.1台阶收入趋势
export function overall (query) {
    return ajaxSet({
        url: '/StepIncome/overall',
        method: 'get',
        params: query
    })
}

// 2.2经营单元增长情况
export function unitgrouth (query) {
    return ajaxSet({
        url: '/StepIncome/unitgrouth',
        method: 'get',
        params: query
    })
}

// 2.3经营单元的结构细项变化
export function stepsSubject (query) {
    return ajaxSet({
        url: 'StepIncome/managementSubject',
        method: 'get',
        params: query
    })
}

export function getMhIncomeFusionList (query) {
    return ajaxSet({
        url: '/mhIncome/fusion',
        method: 'get',
        params: query
    })
}

export function getHbWaveList (query) {
    return ajaxSet({
        url: '/examine/hbWave',
        method: 'get',
        params: query
    })
}

export function getHbAnalysisList (query) {
    return ajaxSet({
        url: '/examine/hbAnalysis',
        method: 'get',
        params: query
    })
}

export function getMhDetailList (query) {
    return ajaxSet({
        url: '/examine/mhDetail',
        method: 'get',
        params: query
    })
}
export function getMhHbDetailList (query) {
    return ajaxSet({
        url: '/examine/mhHbDetail',
        method: 'get',
        params: query
    })
}
export function getStepDetailList (query) {
    return ajaxSet({
        url: '/examine/stepDetail',
        method: 'get',
        params: query
    })
}
export function getHbStepDetailList (query) {
    return ajaxSet({
        url: '/examine/hbStepDetail',
        method: 'get',
        params: query
    })
}

export function getProduct (query) {
    return ajaxSet({
        url: '/examine/product',
        method: 'get',
        params: query
    })
}

export function getHbIncomeProduct (query) {
    return ajaxSet({
        url: '/examine/hbIncomeProduct',
        method: 'get',
        params: query
    })
}
